import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import { Swipe, SwipeItem } from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
import 'mint-ui/lib/style.css';

import Swiper from 'swiper';
Vue.component(Swiper)
import 'swiper/dist/css/swiper.min.css';

import axios from 'axios'
//因为全局都用到，所以把它放到Vue的原型上面，就不一个一个引用了
Vue.prototype.axios=axios;
//配置公共url
axios.defaults.baseURL='http://localhost:3000'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
